package com.tencent.org.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department {
    private Long id;
    private String sn;
    private String name;
    private Integer state;

    private Long manager_id;
    private Emp manager;

    private Long parent_id;
    private Department parent;

    // 设置一个装子部门的集合
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Department> children = new ArrayList<>();
}
